package com.ba.base.model.vo

/**
 *
 *
 * 文件上传回调实体
 *
 */
class UploadFileEntity {

    /**是否是视频*/
    var video: Boolean = false

    /**文件名称*/
    var fileName: String? = null

    /**图片链接*/
    var fileUrl: String? = null

    /**视频链接*/
    var videoUrl: String? = null
    /**视频封面链接*/
    var videoCoverUrl: String? = null
    /**视频时长*/
    var duration: Long? = null
    override fun toString(): String {
        return "UploadFileEntity(video=$video, fileName=$fileName, fileUrl=$fileUrl, videoUrl=$videoUrl, videoCoverUrl=$videoCoverUrl, duration=$duration)"
    }


}

/**文件上传结果*/
data class UploadResult(
    var code: Int = 200,
    var data: List<UploadFileEntity>,
    var msg: String = "请求成功"
) {
    override fun toString(): String {
        return "UploadResult(code=$code, data=$data, msg='$msg')"
    }
}